package com.hq.modeapp.ui;



import java.util.Iterator;

import org.json.JSONException;
import org.json.JSONObject;

import com.hq.modeapp.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.GestureDetector;
import android.view.GestureDetector.OnGestureListener;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.ImageView.ScaleType;
import android.widget.ViewFlipper;

/**
 * **********************************************************
 *  @内容摘要	：推送
 *
 *  @作者	：黄秋
 *  @创建时间	：2013-4-11 下午3:16:11 
 *  @历史记录	:
 *  @日期	: 2013-4-11 下午3:16:11 	修改人：黄秋
 *  @描述	:
 ***********************************************************
 */
public class PushActivity extends Activity  {


	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.guide_activity);
		try {
			Intent intent = getIntent();
	          String action = intent.getAction();
	          String channel = intent.getExtras().getString("com.parse.Channel");
	          System.out.println("channel==="+channel);
	          JSONObject json = new JSONObject(intent.getExtras().getString("com.parse.Data"));
	          System.out.println("json==="+json.toString());
	          Iterator itr = json.keys();
	          while (itr.hasNext()) {
	            String key = (String) itr.next();
	            System.out.println("key=="+key);
	          }
	        } catch (JSONException e) {
	        	e.printStackTrace();
	        }
		
	}









}
